﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using BLL;
namespace DBLWebService
{
    /// <summary>
    /// UserShopService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class UserShopService : System.Web.Services.WebService
    {

        //[WebMethod]
        //public string HelloWorld()
        //{
        //    return "Hello World";
        //}
        [WebMethod]
        public DataSet FindShopDetailByID(int id)
        {

            return UserShopBLL.FindShopDetailByID(id);
        }

        [WebMethod]
        public int AddUpdateUserShop(int id, string dblNo, string nickName,
           string fullName, string keyWord1, string keyWord2, string keyWord3,
               string address, string description, string phone, string fax,
                   string email, string mobilePhone, string shopBoss, string qq, string msn,
                       string blog, string weibo, string website)//infostate默认为0,infotime默认为当前时间
        {
            return UserShopBLL.AddUpdateUserShop(id,dblNo,nickName,fullName,keyWord1,keyWord2,keyWord3,
                address,description,phone,fax,email,mobilePhone,shopBoss,qq,msn,blog,weibo,website);
        }
        [WebMethod]
        public int ApproveUserShop(int id)
        {
            return UserShopBLL.ApproveUserShop(id);
        }
        [WebMethod]
        public int NotApproveUserShop(int id)
        {
            return UserShopBLL.NotApproveUserShop(id);
        }
    }
}
